﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SaveViewAsDialog.aspx.cs" Inherits="LenderClearingHouse.SaveViewAsDialog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
      function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
      }

      function CloseAndRefresh(message) {
        var oWnd = GetRadWindow();
        if (oWnd.BrowserWindow.RefreshForm) {
          oWnd.BrowserWindow.RefreshForm();
        }
        oWnd.close();
      } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <table width="100%" cellpadding="5" cellspacing="0">
      <tr>
        <td width="20%">
          Enter Name:
        </td>
        <td width="60%">
          <asp:TextBox ID="tbNameSettings" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td width="20%">
          &nbsp;
          <asp:RequiredFieldValidator ID="reqNameSettings" runat="server" ErrorMessage="Name is required"
            ControlToValidate="tbNameSettings" Display="Dynamic" 
            ValidationGroup="SaveAs"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td colspan="3">
          <asp:CheckBox ID="chkFlagGlobal" runat="server" Text="Make it Global" TextAlign="Left" />
        </td>
      </tr>
      <tr>
        <td colspan="3" align="center">
          <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="SaveAs" />&nbsp;
          <asp:Button ID="btnClose" runat="server" Text="Cancel" onclientclick="window.close();" />
        </td>
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
